<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
<script type="text/javascript">
	const arr1=[1,2,3,4,5]
	const arr2=[1,2,3,4,5]

    for (let i = 0; i < arr1.length; i++) {
    	console.log(arr1[i])
    }

    for(let index in arr2){
    	console.log(arr2[index])
    }

    arr1.forEach((item,index,arr1)=>{
    	console.log(index,item,arr1)
    })
</script>
</body>
</html>